//-----------------------------------------------------------------------
// <copyright file="a_RelProductsCatService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_RelProductsCatService
    {
        #region a_RelProductsCat

        public static void Createa_RelProductsCat(a_RelProductsCat a_RelProductsCat)
        {            
            try
            {
                a_RelProductsCatDAO a_RelProductsCatDAO = new a_RelProductsCatDAO();
                a_RelProductsCatDAO.Createa_RelProductsCat(a_RelProductsCat);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_RelProductsCat(a_RelProductsCat a_RelProductsCat)
        {            
            try
            {
                a_RelProductsCatDAO a_RelProductsCatDAO = new a_RelProductsCatDAO();
                a_RelProductsCatDAO.Updatea_RelProductsCat(a_RelProductsCat);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_RelProductsCat(int rpCatID)
        {            
            try
            {
                a_RelProductsCatDAO a_RelProductsCatDAO = new a_RelProductsCatDAO();
                a_RelProductsCatDAO.Deletea_RelProductsCat(rpCatID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_RelProductsCat Geta_RelProductsCat(int rpCatID)
        {            
            try
            {
                a_RelProductsCatDAO a_RelProductsCatDAO = new a_RelProductsCatDAO();
                return a_RelProductsCatDAO.Geta_RelProductsCat(rpCatID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_RelProductsCatCollection Geta_RelProductsCatList(a_RelProductsCatColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_RelProductsCatDAO a_RelProductsCatDAO = new a_RelProductsCatDAO();
                return a_RelProductsCatDAO.Geta_RelProductsCatList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_RelProductsCatCollection Geta_RelProductsCatList(a_RelProductsCatColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_RelProductsCatDAO a_RelProductsCatDAO = new a_RelProductsCatDAO();
                return a_RelProductsCatDAO.Geta_RelProductsCatList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}